home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
151-175
/
169
/
src
/
shell
/
todo
< prev
Wrap
Text File
|
1995-03-13
|
1KB
|
65 lines
-SetFileDate() routine in comm2.c
-set xx " x" initial space ignored in quoted section.
-change -f to -e
-version
-history rel.
-flag copy noisy.
recompile version
LATTICE free_memory().
PIPE/PARALLEL implimentation:
a | b -pipe
a || b -execute in parallel parallel
break each command into:
command, parameters
input redirection or pipe in
output redirection or pipe out
call command executor
MUST always specify redirection file names.
command executor:
If not pipe segment (last seg is not considered a pipe)
execute via shell
else
execute a RUN via shell
send pipe terminate command for input and output pipe's in case RUN
failed.
external(avlist, infilename, outfilename)
char **avlist;
char *infilename; NULL means take last pipe segment
char *outfilename; NULL means send to next pipe segment
{
figure out aux. names (for pipes).
if (outfilename == NULL) {
exec a c:RUN >file <file
if (infilename == NULL) /* Ensure pipe has been cleared */
pipeclear inpipe
if (outfilename == NULL)
pipeclear outpipe
} else {
open pert. files
exec a .........
close pert. files
}
}